/*
 * @Author: YWY
 * @Date: 2022-02-22 16:17:42
 * @LastEditors: YWY
 * @LastEditTime: 2022-03-06 10:02:45
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import Header from '@/components/Header.vue'

import { createPinia } from 'pinia'
import {
  Form,
  Field,
  Image,
  Button,
  Toast,
  Icon,
  CellGroup,
  NavBar,
  Divider,
  Grid,
  GridItem,
  Search,
  Tab,
  Tabs,
  Tabbar,
  TabbarItem,
  Collapse,
  CollapseItem,
  Uploader,
  RadioGroup,
  Radio,
  Picker,
  Popup,
  List,
  PullRefresh,
} from 'vant';
import 'vant/lib/index.css';
import './assets/css/index.css';
const pinia = createPinia()
const app = createApp(App)
app.config.productionTip = false

const vantPlugins = [
  Form,
  Field,
  Image,
  Button,
  Toast,
  Icon,
  CellGroup,
  NavBar,
  Divider,
  Grid,
  GridItem,
  Search,
  Tab,
  Tabs,
  Tabbar,
  TabbarItem,
  Collapse,
  CollapseItem,
  Uploader,
  RadioGroup,
  Radio,
  Picker,
  Popup, List,
  PullRefresh
]
vantPlugins.forEach(p => { app.use(p) })

app.component('MyHeader', Header)

// app.use(Vant);
app.use(router)
app.use(pinia)
app.use(mavonEditor)
app.mount('#app') 
